<%@ page language="java" import="java.util.*"  pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    
    <title>管理员登陆</title>
    
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/login.css">
<script type="text/javascript">
function login1(){
 var username=document.getElementById("username");
	 
	   if(username.value==""){
	   alert("用户名不能为空")
	    return;
	   }else{
	     document.getElementById("login-form").submit();
	   }

}
</script>
  </head>
  
  <body>
    <form name="loginform" id="login-form" method="post" action="${pageContext.request.contextPath }/servlet/AdmLogin">

		<div id="main_login">
			<div id="login_text">
				<p>登陆</p>
			</div>
			<div id="div_username">
				<div id="div_username_lb" class="t_username_div">
					<label id="username_lb" for="username">用户名:&nbsp;&nbsp;</label>
				</div>
				<div id="div_username_tx" class="t_username_div">
					<input type="text" placeholder="请输入用户名" name="adminname"
						id="username" class="in" value="" size="38" 
						 required="required" aria-required="true">

				</div>
			</div>
			
			<div id="button_group">
				<div id="login_div" class="button_div">
					<input type="button" id="login" value="登陆" class="tbutton" onclick="login1()">
				</div>
				
				<p id="falmesg" style="margin-left:70px;">${message }
			</div>
		</div>
	</form>
  </body>
</html>
